package task3;

public class UserCost {
    private int callDuration;
    private double data;
    private double cost;

    public UserCost(int callDuration, double data, double cost) {
        setCallDuration(callDuration);
        setData(data);
        setCost(cost);
    }

    public int getCallDuration() {
        return callDuration;
    }

    public void setCallDuration(int callDuration) {
        this.callDuration = callDuration;
    }

    public double getData() {
        return data;
    }

    public void setData(double data) {
        this.data = data;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public void show(){
        System.out.println("用户通话时长：" + callDuration);
        System.out.println("用户使用流量：" + data);
        System.out.println("用户消费金额：" + cost);
    }
}
